extends ../layout

block content
  .container
    .modal(style='position: relative;top: auto;right: auto;left: auto;bottom: auto;z-index: 1;display: block; overflow: visible; max-width: 1000px; margin: 0 auto;')
      .modal-dialog(style='position:static; margin: 10px 20px; width:auto;')
        .modal-content
          .modal-body
            form.form-horizontal(method='post',action="/user/signup/")
              h4.modal-header 添加/编辑用户
              .modal-body
                .form-group
                  label.col-lg-2.control-label 用户名:
                  .col-lg-10
                    input.form-control(type='text',name='admin_user[username]', value="")
                .form-group
                  label.col-lg-2.control-label 密码:
                  .col-lg-10
                    input.form-control(type='password',name='admin_user[password]', value="")
                .form-group
                  label.col-lg-2.control-label 邮箱:
                  .col-lg-10
                    input.form-control(type='text',name='admin_user[email]', value="")
                .form-group
                  label.col-lg-2.control-label 手机:
                  .col-lg-10
                    input.form-control(type='text', name='admin_user[organization]', value="")
                .form-group
                  label.col-lg-2.control-label 权限:
                  .col-lg-10
                    input.form-control(type='text',name='admin_user[adminemail]', value="")
              .modal-footer
                button.btn.btn-success#adduser(type="submit") 提交
                a.btn.btn-default(href='/user/list/') 取消
              //- else
              //-   i.icon-save
              //-   |保存修改
            //- a.btn.btn-default.btn-cancel(href='/user/list/')
            //-   |取消
            //-   i.icon-share-alt
